<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	  	<script>
	  	var arr = [1,2,3,4,5,6,7,8]
	  	var arr1 = []
	  	var arr2 = []
	  	for(var i = 0; i < arr.length; i++){
	  		if(arr[i] % 2 == 0){
	  			arr1.push(arr[i])
	  			console.log(arr1)
	  		}else{
	  			arr2.push(arr[i])
	  			console.log(arr2)
	  		}
	  		
	  	}
	  	var a={}, b={key:'b'}, c={key:'c'};
        a[c]=123;
//      a[c]=456; 
    console.log(a[b]);
	  	</script>
	</body>
</html>
